package com.xia.netty.thread.synchronize;
public class SynchronizedDemo   {

    int a = 0;

    public synchronized void fun1(){
        a++;
    }

    public synchronized void fun2(){
        int i = a;
        StringBuffer stringBuffer = new StringBuffer();
        stringBuffer.append("ss");
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append("ss");
    }



}